<!--
 * @Author: 李环玉 834654733@qq.com
 * @Date: 2023-11-27 09:56:07
 * @LastEditors: 李环玉 834654733@qq.com
 * @LastEditTime: 2023-11-29 10:57:59
 * @FilePath: \new-nuxt-blog\layouts\pclayout.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div>
    <BaseHeaderPc :list="list"></BaseHeaderPc>
    <slot />
  </div>
</template>

<script lang="ts">
export default {
  layout: "pclayout"
}
</script>
<script setup lang="ts">
import { getTopMenuData } from "../service/api/topMenu"
let list = ref()
const getData = async () => {
  try {
    await nextTick()
    let res: any = await getTopMenuData({})
    let data = res.data._value
    if(data){
      list.value = data.data
      console.log(list)
    }
  } catch (error) {
    console.log(error)
  }
}
onBeforeMount(()=>{
  getData()
})
</script>

<style scoped lang="scss">

</style>